﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model.Repair
{
    /// <summary>
    /// 报修传参信息
    /// </summary>
    public class RepairRequest
    {
        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
        /// <summary>
        /// 报修人
        /// </summary>
        public string RepairPersonnel { get; set; }
        /// <summary>
        /// 报修人电话
        /// </summary>
        public string RepairTel { get; set; }
        /// <summary>
        /// 报修单位
        /// </summary>
        public string RepairCompany { get; set; }
        /// <summary>
        /// 故障类型
        /// </summary>
        public string FaultType { get; set; }
        /// <summary>
        /// 故障描述
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 接报人
        /// </summary>
        public int Recipient { get; set; }
        /// <summary>
        /// 受理人
        /// </summary>
        public int RMuserID { get; set; }

    }
    /// <summary>
    /// 报修查询信息
    /// </summary>
    public class RepairSelectRequest
    {
        public RepairSelectRequest()
        {
            this.PageIndex = 1;
            this.PagesSize = 20;
        }
        /// <summary>
        /// 当前页数
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 当先显示多少条
        /// </summary>
        public int PagesSize { get; set; }
        /// <summary>
        /// 下一步操作人
        /// </summary>
        public int NextOperatorID { get; set; }
        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
    }

    /// <summary>
    /// 售后记录查询信息
    /// </summary>
    public class AfterSaleRecordRequest
    {
        public AfterSaleRecordRequest()
        {
            DateTime tmp = DateTime.ParseExact("19000101", "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture);
            this.PageIndex = 1;
            this.PagesSize = 20;
            StartRepairTime = tmp;
            EndRepairTime = tmp;
            Operator = -1;
        }
        /// <summary>
        /// 当前页数
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 当先显示多少条
        /// </summary>
        public int PagesSize { get; set; }
        /// <summary>
        /// 报修单位
        /// </summary>
        public string RepairCompany { get; set; }
        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
        /// <summary>
        /// 报修开始时间
        /// </summary>
        public DateTime StartRepairTime { get; set; }
        /// <summary>
        /// 报修结束时间
        /// </summary>
        public DateTime EndRepairTime { get; set; }
        /// <summary>
        /// 报修步骤
        /// </summary>
        public int Operator { get; set; }
    }

    /// <summary>
    /// 报修查询信息
    /// </summary>
    public class RepairEndRequest
    {

        /// <summary>
        /// 操作步骤
        /// </summary>
        public int Step { get; set; }
        /// <summary>
        /// 下一步操作人
        /// </summary>
        public int OperatorID { get; set; }
        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
    }
}
